Skip to content

fix(output): suppress the pulumi-command AcceptEnv warning noise#237

Merged
pedromvgomes merged 1 commit into
mainfrom
fix/quiet-pulumi-command-warning
Jul 20, 2026
Merged

fix(output): suppress the pulumi-command AcceptEnv warning noise#237
pedromvgomes merged 1 commit into
mainfrom
fix/quiet-pulumi-command-warning

Conversation

@pedromvgomes

Copy link
Copy Markdown
Contributor

What

Drops the Unable to set 'PULUMI_COMMAND_STDOUT/STDERR' … AcceptEnv warnings from the deploy/preview stream via an exact-prefix known-noise filter in the Printer.

Why

The pulumi-command remote provider emits this warning for every SSH command on every deploy — OpenSSH's default AcceptEnv rejects the provider's log-forwarding env vars. It is non-actionable noise (command stdout/stderr capture as resource outputs is unaffected — the grant gating on mintCmd.Stdout keeps working), and it buried the real per-resource lines the new output exists to surface. Disabling it at the source isn't safe: the SDK's Logging option would also drop the stdout capture grants depend on, and the alternative — adding AcceptEnv PULUMI_COMMAND_* to every host's sshd — is a fleet config change for a cosmetic win.

The filter is deliberately exact-prefix and single-entry, with a comment warning against letting it grow into the place real warnings go to die. Real warnings still print (tested).

Merge Commit Message

fix(output): suppress the per-command pulumi-command AcceptEnv warning — non-actionable provider noise that buried the real deploy output; real warnings still print

https://claude.ai/code/session_012HJAUraibyPthDne5QG2FW

The remote provider tries to pass PULUMI_COMMAND_STDOUT/STDERR as SSH env
vars on every command; OpenSSH's default AcceptEnv rejects them and the
provider warns — four lines of non-actionable noise per resource, burying
the real output. The vars only control the provider's own log forwarding
(stdout/stderr capture as outputs is unaffected), and the alternative —
loosening every host's sshd AcceptEnv — is a fleet config change for a
cosmetic win.

Suppressed in the Printer via an exact-prefix known-noise filter, kept
deliberately short so it never becomes the place real warnings go to die.
Real warnings still print (tested).

Claude-Session: https://claude.ai/code/session_012HJAUraibyPthDne5QG2FW
@github-actions

Copy link
Copy Markdown

bulwark

  • scan — no findings

  • coverage — go: 66.3% (baseline 66.3%); go patch: 100.0% (4/4 new lines; baseline 66.3%)

📦 Full bulwark output — complete scan and coverage logs.

@pedromvgomes
pedromvgomes merged commit edc45d9 into main Jul 20, 2026
5 checks passed
@pedromvgomes
pedromvgomes deleted the fix/quiet-pulumi-command-warning branch July 20, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant